//reducer数据处理
import { type } from './../action';

const initialState = {
	menuName: "首页"
}

export default (state = initialState, action) => {
	switch(action.type){
		case type.SWITCH_MENU: 
			const newState = JSON.parse(JSON.stringify(state));
			newState.menuName = action.menuName;
			return newState;
		default:
			return state;
	}
}
